#ifndef __CW2015_H
#define __CW2015_H

#include "iic_device.h"

enum CW2015{
    CW2015_ADDR = (0X62<<1),
    CMD_CW2015_WAKE_UP = (0x00<<6),
    CMD_CW2015_SLEEP = (0x03<<6),
    CW2015_REG_VERSION = 0x00,
    CW2015_REG_MODE = 0x0A,
    CW2015_REG_SOC = 0x04
};

void cw2015_get_electric_quantity(uint8_t *electric_quantity);

#endif /* __CW2015_H */